package com.Controller;

import com.Service.testService;
import com.enitity.test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/aa")
public class Controllertest {

//    @Value("${lesson}")
//    private String lesson;

//    @Autowired
//    private Environment environment;

    @Autowired
    private testService t;

    @GetMapping("/a/{id}")
    public String ById(@PathVariable int id) {
        System.out.println(id);
        return "111";
    }

    @GetMapping("/b")
    public test t() {
        test dd = t.dd();
        System.out.println(dd);
        return dd;
    }

}